package com.zhiyou100.service.impl;

import com.zhiyou100.entity.Repairlog;
import com.zhiyou100.mapper.RepairlogMapper;
import com.zhiyou100.service.RepairlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 修缮信息 服务实现类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-01 11:01
 */
@Service
public class RepairlogImpl implements RepairlogService {
    @Autowired
    private RepairlogMapper mapper;

    @Override
    public List<Repairlog> list() {
        return mapper.list();
    }

    @Override
    public Repairlog selectOne(Integer id) {
        return mapper.selectOne(id);
    }

    @Override
    public void updateOne(Repairlog repairlog) {
        mapper.updateOne(repairlog);
    }

    @Override
    public void deleteOne(Integer id) {
        mapper.deleteOne(id);
    }

    @Override
    public void insertOne(Repairlog repairlog) {
        mapper.insertOne(repairlog);
    }
}
